package com.fzs;


import com.fzs.sshd.cli.server.SshServerFactory;
import org.apache.sshd.server.SshServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BootStrap {

    public static void main(String[] args) throws Exception {

        int port = 8000;
        SshServer sshd = SshServerFactory.createSshServer(args, port);
        if (sshd == null){
            System.exit(-1);
            return;
        }
        System.err.println("Starting SSHD on port " + port);
        sshd.start();

        SpringApplication.run(BootStrap.class, args);

    }

}
